package com.dmbjz.profilesdemo.bean;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.context.annotation.Profile;
import org.springframework.stereotype.Component;

@Data
@Component
@AllArgsConstructor
@NoArgsConstructor
//指定环境，只有处于dev、prod环境才会生效
@Profile({"dev","prod"})
public class Cat {

    private Long id;
    private String catName;

}
